﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace B.S.BaseData.Infrastructure.Interfaces
{
    public interface IBaseRepository<T> where T : class
    {
        Task<int> AddAsync(T entity);

        IQueryable<T> Query(Expression<Func<T, bool>> expression);

        Task<T> GetAsync(Expression<Func<T, bool>> expression);


        Task<int> DelAsync(T entity);

        Task<int> UpdateAsync(T entity);
    }
}
